home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / servers / bootstrap_defs.h next >
Text File  |  1991-08-12  |  1KB  |  39 lines

  1. /*
  2.  * bootstrap -- fundamental service initiator and port server
  3.  * Mike DeMoney, NeXT, Inc.
  4.  * Copyright, 1990.  All rights reserved.
  5.  *
  6.  * bootstrap_defs.h -- bootstrap service data types and constants
  7.  * See bootstrap.defs for description of bootstrap services.
  8.  */
  9.  
  10. #ifndef _BOOTSTRAP_DEFS_
  11. #define    _BOOTSTRAP_DEFS_
  12. #import <mach/mach.h>
  13.  
  14. #define    BOOTSTRAP_MAX_NAME_LEN            128
  15. #define    BOOTSTRAP_MAX_CMD_LEN            512
  16.  
  17. typedef char name_t[BOOTSTRAP_MAX_NAME_LEN];
  18. typedef char cmd_t[BOOTSTRAP_MAX_CMD_LEN];
  19. typedef name_t *name_array_t;
  20. typedef boolean_t *bool_array_t;
  21.  
  22. #define    BOOTSTRAP_MAX_LOOKUP_COUNT        20
  23.  
  24. #define    BOOTSTRAP_SUCCESS                0
  25. #define    BOOTSTRAP_NOT_PRIVILEGED            1100
  26. #define    BOOTSTRAP_NAME_IN_USE                1101
  27. #define    BOOTSTRAP_UNKNOWN_SERVICE            1102
  28. #define    BOOTSTRAP_SERVICE_ACTIVE            1103
  29. #define    BOOTSTRAP_BAD_COUNT                1104
  30. #define    BOOTSTRAP_NO_MEMORY                1105
  31.  
  32. /*
  33.  * Compatibility, this gets subsumed by bootstrap_subset().
  34.  */
  35. extern kern_return_t bootstrap_get_unpriv_port(
  36.     port_t    bootstrap_port,
  37.     port_t    *unpriv_port);
  38. #endif _BOOTSTRAP_DEFS_
  39.